package pers.cj.pdos.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author chenj
 * @since 2020-03-13
 */
public class SaleOrder extends Model<SaleOrder> {

    private static final long serialVersionUID = 1L;

    private String id;

    /**
     * 门店id
     */
    private String storeId;

    /**
     * 1.未转销售 2部分转销售 3全部转销售
     */
    private Integer transferStatus;

    /**
     * 1未审核  2审核未转进货 3转进货
     */
    private Integer status;

    /**
     * 是否关闭(手动关闭;转销售单后,销售订单自动关闭)
     */
    private Boolean close;

    /**
     * 客户id
     */
    private String customId;

    /**
     * 单据编号
     */
    private String no;

    /**
     * 销售类型 1批发 2零售
     */
    private Integer type;

    /**
     * 经办人
     */
    private String userId;

    /**
     * 审核人
     */
    private String verifyUserId;

    /**
     * 业务日期
     */
    private Date date;

    /**
     * 是否送货
     */
    private Boolean delivery;

    /**
     * 送货日期
     */
    private Date deliveryDate;

    /**
     * 客户联系人
     */
    private String contacts;

    /**
     * 联系电话
     */
    private String phone;

    /**
     * 送货地址
     */
    private String address;

    /**
     * 1折扣率 2折扣金额
     */
    private Integer discountFlag;

    /**
     * 折扣率
     */
    private BigDecimal discountRate;

    /**
     * 折扣金额
     */
    private BigDecimal discountAmt;

    /**
     * 其他费用
     */
    private BigDecimal otherAmt;

    /**
     * 总金额
     */
    private BigDecimal totalAmt;

    /**
     * 备注
     */
    private String remark;

    /**
     * 附件图片
     */
    private String image;

    /**
     * 制单人
     */
    private String makeUserId;

    /**
     * 制单时间
     */
    private Date makeTime;

    private Date time;

    private String companyId;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }
    public String getStoreId() {
        return storeId;
    }

    public void setStoreId(String storeId) {
        this.storeId = storeId;
    }
    public Integer getTransferStatus() {
        return transferStatus;
    }

    public void setTransferStatus(Integer transferStatus) {
        this.transferStatus = transferStatus;
    }
    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
    public Boolean getClose() {
        return close;
    }

    public void setClose(Boolean close) {
        this.close = close;
    }
    public String getCustomId() {
        return customId;
    }

    public void setCustomId(String customId) {
        this.customId = customId;
    }
    public String getNo() {
        return no;
    }

    public void setNo(String no) {
        this.no = no;
    }
    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }
    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }
    public String getVerifyUserId() {
        return verifyUserId;
    }

    public void setVerifyUserId(String verifyUserId) {
        this.verifyUserId = verifyUserId;
    }
    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }
    public Boolean getDelivery() {
        return delivery;
    }

    public void setDelivery(Boolean delivery) {
        this.delivery = delivery;
    }
    public Date getDeliveryDate() {
        return deliveryDate;
    }

    public void setDeliveryDate(Date deliveryDate) {
        this.deliveryDate = deliveryDate;
    }
    public String getContacts() {
        return contacts;
    }

    public void setContacts(String contacts) {
        this.contacts = contacts;
    }
    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }
    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }
    public Integer getDiscountFlag() {
        return discountFlag;
    }

    public void setDiscountFlag(Integer discountFlag) {
        this.discountFlag = discountFlag;
    }
    public BigDecimal getDiscountRate() {
        return discountRate;
    }

    public void setDiscountRate(BigDecimal discountRate) {
        this.discountRate = discountRate;
    }
    public BigDecimal getDiscountAmt() {
        return discountAmt;
    }

    public void setDiscountAmt(BigDecimal discountAmt) {
        this.discountAmt = discountAmt;
    }
    public BigDecimal getOtherAmt() {
        return otherAmt;
    }

    public void setOtherAmt(BigDecimal otherAmt) {
        this.otherAmt = otherAmt;
    }
    public BigDecimal getTotalAmt() {
        return totalAmt;
    }

    public void setTotalAmt(BigDecimal totalAmt) {
        this.totalAmt = totalAmt;
    }
    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }
    public String getMakeUserId() {
        return makeUserId;
    }

    public void setMakeUserId(String makeUserId) {
        this.makeUserId = makeUserId;
    }
    public Date getMakeTime() {
        return makeTime;
    }

    public void setMakeTime(Date makeTime) {
        this.makeTime = makeTime;
    }
    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }
    public String getCompanyId() {
        return companyId;
    }

    public void setCompanyId(String companyId) {
        this.companyId = companyId;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "SaleOrder{" +
            "id=" + id +
            ", storeId=" + storeId +
            ", transferStatus=" + transferStatus +
            ", status=" + status +
            ", close=" + close +
            ", customId=" + customId +
            ", no=" + no +
            ", type=" + type +
            ", userId=" + userId +
            ", verifyUserId=" + verifyUserId +
            ", date=" + date +
            ", delivery=" + delivery +
            ", deliveryDate=" + deliveryDate +
            ", contacts=" + contacts +
            ", phone=" + phone +
            ", address=" + address +
            ", discountFlag=" + discountFlag +
            ", discountRate=" + discountRate +
            ", discountAmt=" + discountAmt +
            ", otherAmt=" + otherAmt +
            ", totalAmt=" + totalAmt +
            ", remark=" + remark +
            ", image=" + image +
            ", makeUserId=" + makeUserId +
            ", makeTime=" + makeTime +
            ", time=" + time +
            ", companyId=" + companyId +
        "}";
    }
}
